- Notifications
You must be signed in to change notification settings - Fork 1.6k
/
Copy pathsource.cpp
31 lines (28 loc) · 902 Bytes
/
source.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#using <System.dll>
#using <System.Drawing.dll>
#using <System.Windows.Forms.dll>
usingnamespaceSystem;
usingnamespaceSystem::Windows::Forms;
public ref classForm1: publicForm
{
protected:
TextBox^ textBox1;
// <Snippet1>
private:
voidPrintBindingMemberInfo()
{
foreach ( Control^ thisControl in this->Controls)
{
foreach ( Binding^ thisBinding in thisControl->DataBindings)
{
// Print the control's name and Binding information.
Console::WriteLine( "\n {0}", thisControl );
BindingMemberInfo bInfo = thisBinding->BindingMemberInfo;
Console::WriteLine( "Binding Path \t {0}", bInfo.BindingPath );
Console::WriteLine( "Binding Field \t {0}", bInfo.BindingField );
Console::WriteLine( "Binding Member \t {0}", bInfo.BindingMember );
}
}
}
// </Snippet1>
};